package com.see.domain.model;

public class StockDetail {
	private String symbol;
	private double price;
	private double open;
	private double close;
	private double high;
	private double low;
	private long volumn;

	public StockDetail() {
	}

	public String getSymbol() {
		return symbol;
	}

	public void setSymbol(String symbol) {
		
		this.symbol = symbol.toUpperCase();
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getOpen() {
		return open;
	}

	public void setOpen(double open) {
		this.open = open;
	}

	public double getClose() {
		return close;
	}

	public void setClose(double close) {
		this.close = close;
	}

	public double getHigh() {
		return high;
	}

	public void setHigh(double high) {
		this.high = high;
	}

	public double getLow() {
		return low;
	}

	public void setLow(double low) {
		this.low = low;
	}

	public long getVolumn() {
		return volumn;
	}

	public void setVolumn(long volumn) {
		this.volumn = volumn;
	}

	@Override
	public boolean equals(Object obj) {
		boolean isSame = false;
		if (obj != null && obj.getClass().isInstance(this)) {
			isSame = (this.open == ((StockDetail) obj).getOpen());
		}
		return isSame;
	}
}
